package org.mathcat.dubbo.consumer;

import org.apache.dubbo.config.annotation.Reference;
import org.mathcat.dubbo.service.api.DemoService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * [TITLE]
 * <p>[DESCRIPTION]</p>
 * <p>Created by xuweinan on 2018/7/19</p>
 *
 * @author xuweinan
 */
@RestController
public class DemoController {

    @Reference(check = false)
    private DemoService demoService;

    @RequestMapping("/sayHello")
    public String sayHello(String name) {
        return demoService.hello(name);
    }

}
